package com.wxzz.elearing.comment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxzz.elearing.comment.dto.QuestionsAnswersDto;
import com.wxzz.elearing.comment.entity.QuestionsAnswersList;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-05-14
 */
public interface QuestionsAnswersListMapper extends BaseMapper<QuestionsAnswersList> {

    @Update("UPDATE questions_answers_list set is_accept =1 , accept_id =#{model.uid} where id=#{model.id}")
    Integer setAccept(@Param("model") QuestionsAnswersDto questionsAnswersDto);
    @Update("UPDATE questions_answers_list SET is_pay=1 where order_id=#{orderId}")
    Integer updateIsPay(Long orderId);
}
